package com.wjc.server.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.util.List;

public class RoleDto {

    /**
     * id
     */
        private Long id;
    /**
     * 角色
     */
        
        @NotBlank(message = "角色不能为空")
        @Length(min=0,max = 50,message = "角色字符长度过长")
        private String name;
    /**
     * 描述
     */
        
        @NotBlank(message = "描述不能为空")
        @Length(min=0,max = 100,message = "描述字符长度过长")
        private String desc;

        private List<String> resourceIds;

        private List<String> userIds;

    public List<String> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<String> userIds) {
        this.userIds = userIds;
    }

    public List<String> getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(List<String> resourceIds) {
        this.resourceIds = resourceIds;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    @Override
    public String toString() {
        return "RoleDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", resourceIds=" + resourceIds +
                ", userIds=" + userIds +
                '}';
    }

}